package vip.fastgo.retroid.android.gamebox.view.adapter

import android.content.Context
import android.view.ViewGroup
import vip.fastgo.retroid.android.gamebox.R

class HomeAdapter(mContext: Context, list: ArrayList<String>) :
    BaseRvAdapter<String>(mContext, list) {

    override fun createHolder(parent: ViewGroup, viewType: Int): BaseViewHolder {
        val view = inflater.inflate(R.layout.item_home_layout, parent, false)
        val holder = BaseViewHolder(view)
        return holder
    }

    override fun bindHolder(holder: BaseViewHolder, position: Int) {
        holder.setText(R.id.item_home_name, list[position])
    }
}